package com.healthcloud.service.brokerMessageLog.impl;

import com.healthcloud.dao.brokerMessageLog.BrokerMessageLogDao;
import com.healthcloud.entity.brokerMessageLog.BrokerMessageLogEntity;
import com.healthcloud.entity.brokerMessageLog.BrokerMessageLogListReq;
import com.healthcloud.service.brokerMessageLog.BrokerMessageLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

import com.healthcloud.utils.PageParam;
import org.springframework.transaction.annotation.Transactional;


/**
 * 仪器推送信息记录 实现层
 */
@Service("brokerMessageLogService")
@Transactional
public class BrokerMessageLogServiceImpl implements BrokerMessageLogService {
	@Autowired
	private BrokerMessageLogDao brokerMessageLogDao;


	/**
	 * 获取数据追踪全部列表数据
	 * @param bean 查询参数
	 * @param pageParam 分页参数
	 * @return
	 */
	@Override
	public List<BrokerMessageLogEntity> queryList(BrokerMessageLogListReq bean, PageParam pageParam) {
		return brokerMessageLogDao.queryList(bean, pageParam);
	}

	/**
	 * 获取数据追踪记录数
	 * @param bean 查询参数
	 * @return
	 */
	@Override
	public int queryTotal(BrokerMessageLogListReq bean) {
		return brokerMessageLogDao.queryTotal(bean);
	}

}
